package com.service;

import com.model.PlacedHospital;
import com.page.GenericPage;
import com.po.AdvertisementBindPO;
import com.po.PlacedHospitalModifyPO;
import com.po.PlacedHospitalPO;
import com.po.PlacedHospitalSelectPO;
import com.result.Result;
import com.vo.AdvertisementVO;
import com.vo.PlacedHospitalVO;

import java.util.List;

/**
 * @Author: chihaojie
 * @Date: 2019/5/29 16:13
 * @Version 1.0
 * @Note
 */
public interface PlacedHospitalService {


    Result<PlacedHospital> save(PlacedHospitalPO hospitalPO);

    Result<Boolean> modifyById(PlacedHospitalModifyPO placedHospitalModifyPO);

    Result<Boolean> removeById(Long id);

    Result<GenericPage<PlacedHospital>> queryByUserid(Integer pageNo, Integer pageSize, Long userId);

    Result<Boolean> userAddHospital(Long userId, Long hospitalId);

    Result<Boolean> userRemoveHospital(Long userId, Long hospitalId);

    Result<GenericPage<PlacedHospital>> queryAll(PlacedHospitalSelectPO placedHospitalSelectPO);

    Result<PlacedHospital> queryById(Long id);

    Result<Boolean> bindAdvertisement(AdvertisementBindPO advertisementPublishPO);

    Result<Boolean> unbindAdvertisement(List<Long> hospitalIds);

    Result<Boolean> publishAdvertiseByHospitalId(Long id);

}
